package cn.sofwin.day0124.C2;
/**
 * 父类
 * @author lsp同志
 * @email 1540174302@qq.com
 */
public class C2 {
   private String name;
   private int  age;
    private String eat;

    public String getName(String name) {
        System.out.print("名字是:"+name+"\t");
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge(int age) {
        System.out.print("年龄是:"+age+"\t");
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getEat(String eat) {
        System.out.print("爱吃:"+eat+"\t");
        return eat;
    }

    public void setEat(String eat) {
        this.eat = eat;
    }
}
